package com.neu.service.impl;

import com.neu.dao.PlansDao;
import com.neu.po.Plan;
import com.neu.service.PlanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class PlanServiceImpl implements PlanService {

    @Autowired
    PlansDao plansDao;

    @Override
    public Plan selectById(int id) {
        Plan plan = plansDao.selectById(id);
        return plan;
    }

    @Override
    public List<Plan> selectList(String where, Map<String, Object> map) {
        List<Plan> list = plansDao.selectList(where,map);
        return list;
    }

    @Override
    public int update(Plan plan) {
        int len = plansDao.update(plan);
        return len;
    }


}
